package pokerantani.v2.linematchers;

import java.util.regex.Pattern;

import pokerantani.v2.LineMatcher;
import pokerantani.v2.RE;


public class UncalledBetReturned extends LineMatcher {
	static final Pattern pUncalledBetReturned = Pattern.compile("Uncalled bet of \\$(" + RE.FLOAT + ") returned to (" + RE.PLAYER + ")");

	public String playerName;
	public float amount;
	
	public boolean match(String line) {
		if(match(line, pUncalledBetReturned)) {
			playerName = group(2);
			amount = groupFloat(1);
			return true;
		}
		return false;
	}

}
